<<<<<<< HEAD
<?php

namespace app\api\model;

class UserAddress extends BaseModel
{
    protected $table = 'fa_user_address';

    /**
     * @param int $userid
     * @param $addressId
     * @return array|bool|\PDOStatement|string|\think\Model|null
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function getByUserIdAddress(int $userid, $addressId)
    {
        return self::where('id',$addressId)
            ->where('user_id',$userid)
            ->find();
    }

=======
<?php

namespace app\api\model;

class UserAddress extends BaseModel
{
    protected $table = 'fa_user_address';

    /**
     * @param int $userid
     * @param $addressId
     * @return array|bool|\PDOStatement|string|\think\Model|null
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function getByUserIdAddress(int $userid, $addressId)
    {
        return self::where('id',$addressId)
            ->where('user_id',$userid)
            ->find();
    }
>>>>>>> 0591f0f6f4619c1e24959052aec247fc0f331c0b
}